﻿package net.jmp0.toast.entities.obstacles 
{
	import net.jmp0.toast.entities.bases.GameElement;
	import net.jmp0.toast.entities.obstacles.Obstacle;
	
	/**
	 * ...
	 * @author Thodd
	 */
	public class Lock extends Obstacle
	{
		[Embed(source = '../../res/lock.png')] private var imgSprite:Class;
		
		public function Lock(x:int, y:int) {
			super(x, y);

			//Standard setup stuff
			this.sprite = FP.getSprite(imgSprite, 20, 20, false, false, 0, 0, true);
			this.randomizeAnimation();	
		}
		
		override public function performCollision(colPartner:GameElement):void {
			//by default, the moving object is stopped
			//additional collision behavior for unlocking the lock is implemented in the Player class
		}
		
	}

}